/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 折扣策略审核(OEM)

// 数据查询GET /fiDiscountPolicy/searchPolicyListForAudit
export const queryList = (params) => axios.get(`${SERVER.WHOLESALES}/fiDiscountPolicy/searchPolicyListForAudit`, {
  params
})
// 订单细分查询  /fiOrderTypeSub/searchFiOrderTypeSubDTOList
export const queryOrderTypeSub = (params) => axios.get(`${SERVER.WHOLESALES}/fiOrderTypeSub/searchFiOrderTypeSubDTOListNotPage`, {
  params
})

// 结算方式 /fiAccountType?fundsType=0&powerType=60081001
export const getFiAccountType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)

// 根据id查询详情 /fiDiscountPolicy/getFiDiscountPolicyDTOById
export const getFiDiscountPolicyById = (Id) => axios.get(`${SERVER.WHOLESALES}/fiDiscountPolicy/getFiDiscountPolicyDTOById?id=${Id}`)

// 审核数据 /fiDiscountPolicy/auditFiDiscountPolicy
export const auditFiDiscountPolicy = (params) => axios.post(`${SERVER.WHOLESALES}/fiDiscountPolicy/auditFiDiscountPolicy`, params)
